module ActionView
  module Helpers #:nodoc:
    module AssetTagHelper
      alias_method :javascript_include_tag_old, :javascript_include_tag
      
      # javascript_include_tag
      def javascript_include_tag(*sources)
        if sources.delete(:defaults)
            sources = sources.concat(['mootools'])
        end
        
        javascript_include_tag_old(*sources)
      end    
    end # End AssetTagHelper
  end # End Helpers
end # ActionView



